<!--conf-->
<!--#exclude#conf
       <sample>
              <product version="1.5" edition="pro"/>
                     <modifications>
                            <modified date="070101"/>
                     </modifications>
               </sample>
--> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title> Disable drop target checking</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
	
</head>

<body >
	<h1>Disable drop target checking</h1>
  <p>After disabling drop check, item can be dropped everywhere, even on itself. ( to prevent error user must add own code to control drag and drop)
  <br/>If drop check enabled (default behavior) item can't be dropped on itself, or on any from its children.</p>
	<table>
		<tr>
			<td>
				<div id="treeboxbox_tree" style="width:250px; height:218px;background-color:#f5f5f5;border :1px solid Silver;"></div>
			</td>
			<td rowspan="2" style="padding-left:25" valign="top">
				<a href="#" onclick="tree.disableDropCheck(false);">Enable drop target checking</a><br>
				<a href="#" onclick="tree.disableDropCheck(true);">Disable drop target checking</a><br>
			</td>
		</tr>
		<tr>
			<td>
			</td>
		</tr>
	</table>
<br>
	<script>
			tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);

			tree.setSkin('dhx_skyblue');
			tree.setImagePath("../../../codebase/imgs/dhxtree_skyblue/");
			tree.enableSmartXMLParsing(true);
            tree.enableDragAndDrop(true);
			tree.loadXML("../common/tree_05_drag_n_drop.xml")

	</script>
</body>
</html>
